﻿using Huirui.Cavan.Core.MyLinq;
using Huirui.Cavan.Core.Persistent;
using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Huirui.Cavan.Domain.MainBoundedContext.SystemModule
{
    public class SysActionSpecification : ISpecification<SysAction, SysActionSearch>
    {
        public SysActionSearch SearchParams
        {
            get;
            set;
        }

        public System.Linq.Expressions.Expression<Func<SysAction, bool>> Expression
        {
            get
            {
                IQueryBuilder<SysAction> queryBuilder = QueryBuilder.Create<SysAction>();

                if (null != SearchParams)
                {
                }

                return queryBuilder.Expression.Expand();
            }
        }
    }
}
